package com.panda.mall.common.mallProduct.entity;

import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.panda.mall.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
* 产品采购表
* mall_product_purchase
*/
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("mall_product_purchase")
public class MallProductPurchase extends BaseEntity implements Serializable {

    /**
    * 采购单id
    */
    @NotNull(message="[采购单id]不能为空")
    @ApiModelProperty("采购单id")
    private Long id;
    /**
    * 采购人id
    */
    @ApiModelProperty("采购人id")
    private Long assignId;
    /**
    * 采购人姓名
    */
    @Size(max= 40,message="编码长度不能超过40")
    @ApiModelProperty("采购人姓名")
    @Length(max= 40,message="编码长度不能超过40")
    private String assignName;
    /**
    * 采购人电话
    */
    @Size(max= 40,message="编码长度不能超过40")
    @ApiModelProperty("采购人电话")
    @Length(max= 40,message="编码长度不能超过40")
    private String phone;
    /**
    * 采购优先级
    */
    @ApiModelProperty("采购优先级")
    private Integer priority;
    /**
    * 仓库id
    */
    @ApiModelProperty("仓库id")
    private Long houseId;
    /**
    * 总金额
    */
    @ApiModelProperty("总金额")
    private BigDecimal amount;

}
